﻿<controls:ChildWindow x:Class="DXTools.UI.Core.Dialogs.ErrorDialog"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:local="clr-namespace:DXTools.UI.Core.Dialogs"
           Width="400" Height="300" 
           Title="Error">
    
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition Height="50" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock TextWrapping="Wrap" Margin="2,0,2,2" TextAlignment="Center" Text="Obviously we are not perfect :) There was an expected error running the current tool. Please, take 5 seconds and email the details showed below to us, we will fix it as soon as possible"/>
        <ScrollViewer HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="2" VerticalScrollBarVisibility="Auto" Grid.Row="1" >
            <local:CustomTextBlock x:Name="textBlockMessage" HorizontalAlignment="Stretch" Text="Error Message" VerticalAlignment="Stretch"  />
        </ScrollViewer>
        <Button x:Name="CloseButton" Content="Close" Click="CloseButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,5,5,0" Grid.Row="2" />
        <Button x:Name="EmailButton" Content="Email To Support" Click="EmailButton_Click" Width="120" Height="23" HorizontalAlignment="Left" Margin="5,5,5,0" Grid.Row="2" />
    </Grid>
</controls:ChildWindow>